package com.foreveross.taskservice.application.task.mq;

import java.util.List;

import com.foreveross.taskservice.common.model.AbstractTaskModel;
/**
 * 发布任务到MQ
 * @author Administrator
 *
 */
public interface ITaskToMQApplication{
	
	/**
	 * 发送任务到MQ上
	 * @param tasks
	 * @throws Exception
	 */
	public void sendTasks(List<AbstractTaskModel> tasks)throws Exception;
	/**
	 * 清除历史队列
	 */
	public void clearHistory() throws Exception;
	
}
